package com.itheima;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo01Test {
    public static void main(String[] args) {
        ApplicationContext aa=new AnnotationConfigApplicationContext(SpringConfig.class);
        Demo01 bean = aa.getBean(Demo01.class);
        bean.save();

    }
}
